<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ page contentType="text/html; charset=UTF-8"%>
<%@ page pageEncoding="UTF-8"%>

<form method="POST" action="/cultu/supplier/product/${product.hjid}/edit">
	<div class="bs-callout">
		<input type=hidden name="productID" value="${product.hjid}"/>
		<a class="product-details-title"><h2>${product.label}</h2></a>
		<ul class="product-details-score">
			<c:forEach begin="0" end="${product.note}">
				<li><img
					src="<c:url value="/resources/cultural-store/img/star.png" />" /></li>
			</c:forEach>
		</ul>

		
		<div class="row">
			<div class="col-md-7 product-details-description">
				<p><b>Code produit :</b> ${product.code}</p>
			</div>
		</div>
			
		<div class="row">
			<div class="col-md-7 product-details-description">
				<p>${product.description}</p>
			</div>
	
			

			

			<div class="col-md-5">
				<img class="product-details-image"
					src="http://lesbahundes.com/images/facebook_icon.png" />
			</div>
			</div>
			
			<div class="row">
			<div class="col-md-7"></div>
			<div class="col-md-5" style="center">
				<p><center><b>Prix :</b> ${product.price} euros</center></p>
			</div>
			</div>

			
			
			
		<div class="row">
			<div class="col-md-7"></div>
			<div class="col-md-5" style="text-align: center">
				<input class="btn btn-primary" type="submit" value="Modifier"
					data-container="body" data-toggle="popover" data-placement="right"
					data-original-title="" title="">
			</div>
		</div>
		<div class="row">
			<div class="col-md-12">
				<c:forEach items="${product.annotations}" var="annotation"
					varStatus="status_annotation">
					<div class="panel panel-default product-details-annotation">
						<div class="panel-heading">
							<h3 class="panel-title">${annotation.firstname}
								${annotation.lastname}</h3>
							<span> - le ${annotation.createTime}</span>
							<ul class="product-annotation-score">
								<c:forEach begin="0" end="${annotation.score}">
									<li><img
										src="<c:url value="/resources/cultural-store/img/star.png" />" /></li>
								</c:forEach>
							</ul>
						</div>
						<div class="panel-body">
							<p>${annotation.text}</p>
						</div>
					</div>
				</c:forEach>
			</div>

		</div>
	</div>
</form>
